package com.neuedu.controller.physician;

import com.neuedu.bean.RestBean;
import com.neuedu.service.physician.PhysicianPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



/**
 * 医生看诊:患者管理
 */
@RestController
@CrossOrigin
public class PhysicianPatientController {
    @Autowired
    private PhysicianPatientService physicianPatientService;
    //获取等待看诊患者人数
    @RequestMapping("/getWaitPatientCount")
    public Integer getWaitPatientCount(@RequestParam("employee_id")Integer employee_id){
        return physicianPatientService.getWaitPatientCount(employee_id);
    }
    //获取等待看诊患者信息
    @RequestMapping("/getWaitPatient")
    public RestBean getWaitPatient(@RequestParam("employee_id")Integer employee_id,
                                   @RequestParam("case_number")String case_number,
                                   @RequestParam("real_name")String real_name,
                                   @RequestParam("nowPageNumber")Integer nowPageNumber,
                                   @RequestParam("pageSize")Integer pageSize){
        return physicianPatientService.getWaitPatient(employee_id,case_number,real_name,nowPageNumber,pageSize);
    }
}
